package com.hongpu.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author 张玉胜
 * @since 2025年06月09日
 */
@Data
public class UnpaidAmountDto implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 收款明细数据ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * 项目回款主数据ID，用于查询项目合同金额
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long projectWorkPayId;

    /**
     * 合同总金额
     */
    private BigDecimal totalContractAmount =  BigDecimal.ZERO;

    /**
     * 已收款金额
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "#.##")
    private BigDecimal paid =  BigDecimal.ZERO;

    /**
     * 未收款金额
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "#.##")
    private BigDecimal unpaid =  BigDecimal.ZERO;
    /**
     * 一共收款金额
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "#.##")
    private BigDecimal totalPaid  =  BigDecimal.ZERO;
}